package com.systop.student.service.Impl;
import com.systop.common.pojo.Student;
import com.systop.student.mapper.StudentMapper;
import com.systop.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public  class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public Student SudentLogin(Student student) {
        return studentMapper.studentLogin(student);
    }

    @Override
    public List<Student> studentSupList() {
        return studentMapper.studentSupList();
    }

    @Override
    public int studentAdd(Student student) {
        return studentMapper.studentAdd(student);
    }

    @Override
    public int updataStudent(Student student) {
        return studentMapper.updataStudent(student);
    }

    @Override
    public List<Student> studentSupList1(String sno) {
        return studentMapper.studentSupList1(sno);
    }

    @Override
    public int delStudent(String sno) {
        return studentMapper.delStudent(sno);
    }
}
